<h2>Wszystkie artykuły</h2>
<?php echo $this->Paginator->prev('< Poprzednia', null, null, array('class' => 'disabled')); ?>
&nbsp;&nbsp;
<?php echo $this->Paginator->numbers(); ?>
&nbsp;&nbsp;
<?php echo $this->Paginator->next('Następna >', null, null, array('class' => 'disabled')); ?>
<hr />
<?php
//print_r($articles);
foreach($articles as $article) {
   $articleLink = "/articles/show/".$article['Article']['id']."/".slug($article['Article']['title']);
   echo("<h2>".$article['Article']['title']."</h2>");
   echo("<span class=\"article-info\">Autor: ".$article['User']['username'].", <a href=\"".$articleLink."#comments\">Skomentuj (".count($article['ArticleComment']).") &raquo;</a></span>");
   echo("<p>".shorten("<!--more-->", $article['Article']['content'], "... <a href=\"".$articleLink."\">Czytaj dalej...</a>", "")."</p>");
}
?>
<?php echo $this->Paginator->prev('< Poprzednia', null, null, array('class' => 'disabled')); ?>
&nbsp;&nbsp;
<?php echo $this->Paginator->numbers(); ?>
&nbsp;&nbsp;
<?php echo $this->Paginator->next('Następna >', null, null, array('class' => 'disabled')); ?>